/*
 * Copyleft 2012 Power by Colen.
 *
 * Project: app-crm
 * Date: Apr 22, 2012
 */
package com.crm.common.dao;

import java.util.List;
import java.util.Map;

/**
 * Naming-SQL DAO Support
 *
 * @author Colen
 *
 */
public interface NamingDaoSupport {


    /**
     * query for list by naming-sql
     *
     * @param sqlId SQL ID
     * @param args Arguments
     * @return List
     */
    List<Map<String, Object>> namingQueryForList(String sqlId, Map<String, Object> args);

    /**
     * Update Table by naming-sql
     *
     * @param sqlId SQL ID
     * @param args Arguments
     * @return update rows
     */
    int namingUpdate(String sqlId, Map<String, Object> args);
}
